package com.aaa.service.impl;

import com.aaa.pojo.Student;
import com.aaa.service.ClassService;
import com.aaa.mapper.ClassMapper;
import com.aaa.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
*
*/
@Service
public class ClassServiceImpl implements ClassService{
    @Autowired
    private ClassMapper classMapper;

    @Override
    public Result findAll(Integer cid) {
        Student all = classMapper.findAll(cid);
        return new Result(200,"查询学生信息",all);
    }

    @Override
    public void insert(Student student) {
        classMapper.insert(student);
    }

    @Override
    public void updateById(Student student) {
        classMapper.updateById(student);
    }

    @Override
    public void deleteById(Integer sId) {
        classMapper.deleteById(sId);
    }


}
